home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3c / strptime.z / strptime
Encoding:
Text File  |  2002-10-03  |  7.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4. ssssttttrrrrppppttttiiiimmmmeeee((((3333CCCC))))                                                      ssssttttrrrrppppttttiiiimmmmeeee((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _ssss_tttt_rrrr_pppp_tttt_iiii_mmmm_eeee - date and time conversion
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_tttt_iiii_mmmm_eeee_...._hhhh_>>>>
  13.  
  14.      _cccc_hhhh_aaaa_rrrr _****_ssss_tttt_rrrr_pppp_tttt_iiii_mmmm_eeee _((((_cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_bbbb_uuuu_ffff_,,,, _cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_ffff_oooo_rrrr_mmmm_aaaa_tttt_,,,, _ssss_tttt_rrrr_uuuu_cccc_tttt _tttt_mmmm _****_tttt_mmmm_))))_;;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _ssss_tttt_rrrr_pppp_tttt_iiii_mmmm_eeee converts the character string pointed to by _b_u_f to values which
  18.      are stored in the ttttmmmm structure pointed to by _t_m, using the format
  19.      specified by _f_o_r_m_a_t.
  20.  
  21.      The _f_o_r_m_a_t string consists of zero or more directives and ordinary
  22.      characters.  Each directive is composed of one of the following: one or
  23.      more white-space characters (as specified by _i_s_s_p_a_c_e(); an ordinary
  24.      character (neither % nor a white-space character);  or a conversion
  25.      specification. Each conversion specification is composed of a % character
  26.      followed by a conversion character which specifies the replacement
  27.      required. There must be white-space or other non-alphanumeric characters
  28.      between any two conversion specifications. The following conversion
  29.      specifications are supported:
  30.  
  31.      _%%%%_%%%%        same as %
  32.      _%%%%_aaaa        is the day of week, using the locale's weekday names; either
  33.                the abbreviated or full name may be specified.
  34.      _%%%%_AAAA        is the same as %a.
  35.      _%%%%_bbbb        is the month, using the locale's month names; either the
  36.                abbreviated or full name may be specified.
  37.      _%%%%_BBBB        is the same as %b.
  38.      _%%%%_cccc        is replaced by the locale's appropriate date and time
  39.                representation.
  40.      _%%%%_CCCC        is the century number [0,99]; leading zeros are permitted but
  41.                not required.
  42.      _%%%%_dddd        day of month ( 01 - 31 ); leading zeroes are permitted but not
  43.                required.
  44.      _%%%%_DDDD        date as _%%%%_mmmm_////_%%%%_dddd_////_%%%%_yyyy
  45.      _%%%%_eeee        is the same as %d.
  46.      _%%%%_hhhh        is the same as %b.
  47.      _%%%%_HHHH        is the hour (24-hour clock) ( 00 - 23 ); leading zeroes are
  48.                permitted but not required.
  49.      _%%%%_IIII        hour ( 01 - 12 )
  50.      _%%%%_jjjj        day number of year ( 001 - 366 )
  51.      _%%%%_mmmm        month number ( 01 - 12 )
  52.      _%%%%_MMMM        minute ( 00 - 59 )
  53.      _%%%%_nnnn        is any white space.
  54.      _%%%%_pppp        locale's equivalent of either AM or PM
  55.      _%%%%_rrrr        time as _%%%%_IIII_::::_%%%%_MMMM_::::_%%%%_SSSS _%%%%_pppp [_AAAA_MMMM|_PPPP_MMMM]
  56.      _%%%%_RRRR        time as _%%%%_HHHH_::::_%%%%_MMMM
  57.      _%%%%_SSSS        seconds ( 00 - 61 ), allows for leap seconds
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ssssttttrrrrppppttttiiiimmmmeeee((((3333CCCC))))                                                      ssssttttrrrrppppttttiiiimmmmeeee((((3333CCCC))))
  71.  
  72.  
  73.  
  74.      _%%%%_tttt        is any white space.
  75.      _%%%%_TTTT        time as _%%%%_HHHH_::::_%%%%_MMMM_::::_%%%%_SSSS
  76.      _%%%%_UUUU        week number of year ( 00 - 53 ), Sunday is the first day of
  77.                week 1
  78.      _%%%%_wwww        weekday number ( 0 - 6 ), Sunday = 0
  79.      _%%%%_WWWW        week number of year ( 00 - 53 ), Monday is the first day of
  80.                week 1
  81.      _%%%%_xxxx        locale's appropriate date representation
  82.      _%%%%_XXXX        locale's appropriate time representation
  83.      _%%%%_yyyy        year within century ( 00 - 99 )
  84.      _%%%%_YYYY        year as ccyy ( e.g. 1986)
  85.  
  86.      The difference between _%%%%_UUUU and _%%%%_WWWW lies in which day is counted as the
  87.      first of the week.  Week number 01 is the first week in January starting
  88.      with a Sunday for _%%%%_UUUU or a Monday for _%%%%_WWWW.  Week number 00 contains those
  89.      days before the first Sunday or Monday in January for _%%%%_UUUU and _%%%%_WWWW,
  90.      respectively.
  91.  
  92.    SSSSeeeelllleeeeccccttttiiiinnnngggg tttthhhheeee OOOOuuuuttttppppuuuutttt''''ssss LLLLaaaannnngggguuuuaaaaggggeeee
  93.      By default, the output of _ssss_tttt_rrrr_pppp_tttt_iiii_mmmm_eeee appears in U.S. English.  The user can
  94.      request that the output of _ssss_tttt_rrrr_pppp_tttt_iiii_mmmm_eeee be in a specific language by setting
  95.      the _l_o_c_a_l_e for _c_a_t_e_g_o_r_y _LLLL_CCCC______TTTT_IIII_MMMM_EEEE in _ssss_eeee_tttt_llll_oooo_cccc_aaaa_llll_eeee.
  96.  
  97.    TTTTiiiimmmmeeeezzzzoooonnnneeee
  98.      The timezone is taken from the environment variable _TTTT_ZZZZ [see _cccc_tttt_iiii_mmmm_eeee(3C) for
  99.      a description of _TTTT_ZZZZ].
  100.  
  101. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  102.      Upon successful completion, _ssss_tttt_rrrr_pppp_tttt_iiii_mmmm_eeee_((((_)))) returns a pointer to the character
  103.      following the last character parsed.  Otherwise, a null pointer is
  104.      returned.
  105.  
  106. FFFFIIIILLLLEEEESSSS
  107.      _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______TTTT_IIII_MMMM_EEEE - file containing locale-specific date and
  108.      time information
  109.  
  110. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  111.      _tttt_iiii_mmmm_eeee_((((_2222_)))), _cccc_tttt_iiii_mmmm_eeee(3C), _ssss_tttt_rrrr_ffff_tttt_iiii_mmmm_eeee(3C), _gggg_eeee_tttt_eeee_nnnn_vvvv(3C), _ssss_eeee_tttt_llll_oooo_cccc_aaaa_llll_eeee(3C), _tttt_iiii_mmmm_eeee_zzzz_oooo_nnnn_eeee(4),
  112.      _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5).
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.